<script setup lang="ts">
import FileDownloadSheet from '@/components/animesummarypage/FileDownloadSheet.vue'
import { RssDownloadInfoType } from '@/type/typedefine.ts'
defineProps({
  rssDownloadInfo: {
    type: Object as () => RssDownloadInfoType,
    required: true,
  },
})
</script>

<template>
  <v-list-group>
    <template v-slot:activator="{ props }">
      <v-list-item v-bind="props" :title="rssDownloadInfo.rssName">
        <template v-slot:append>
          <v-btn elevation="0" icon>
            <v-icon>mdi-cog</v-icon>
          </v-btn>
          <v-icon>mdi-chevron-down</v-icon>
        </template>
      </v-list-item>
    </template>
    <v-list-item
      v-for="(fileinfo, index) in rssDownloadInfo.downloadInfos"
      :key="index"
    >
      <FileDownloadSheet
        v-bind:download-info="fileinfo"
        style="margin: 0; padding: 5px"
      ></FileDownloadSheet>
    </v-list-item>
  </v-list-group>
</template>

<style scoped></style>
